package com.example.navigation.api.statistic

import com.example.navigation.api.MyPage
import com.example.navigation.api.ResponseData
import dagger.hilt.android.scopes.ViewModelScoped
import javax.inject.Inject

/**
 * Created with IntelliJ IDEA.
 * @Author: Liao Run
 * @Date: 2024-06-12 9:22
 * @Description:
 **/
@ViewModelScoped
class StatisticRepository @Inject constructor(private val statisticApi: StatisticApi) {
    suspend fun getRoadPmStatisticRank(
        startTime: String,
        endTime: String,
        qy: String
    ): ResponseData<MyPage<RoadRank>> {
        return statisticApi.getRoadPmStatisticRank(startTime, endTime, qy)
    }
}